package com.zzyl.nursing.service.impl;

import com.zzyl.nursing.domain.MemberProject;
import com.zzyl.nursing.mapper.MemberProjectMapper;
import com.zzyl.nursing.service.MemberProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberProjectServiceImpl implements MemberProjectService {
    @Autowired
    private MemberProjectMapper memberProjectMapper;
    
    @Override
    public List<MemberProject> getProjectPage(MemberProject memberProject) {
        return memberProjectMapper.getProjectPage(memberProject);
    }
    
    @Override
    public MemberProject getProjectById(Long id) {
        // 使用自定义的getProjectById方法，确保查询正确的表
        return memberProjectMapper.getProjectById(id);
    }
}
